package ch05;

public class StaticInstanceDemo {

}

class StaticInstance{
    private StaticInstance(){
        System.out.println("init");

    }

    private static class newInstance{
        private static StaticInstance instance = new StaticInstance();
    }

    private static StaticInstance getInstance() {
        return newInstance.instance;
    }

}
